package cqrtplm.mapper;

import cqrtplm.entity.RtCertFiledPartManufacturDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 零件供应商Mapper接口
 */
@Mapper
public interface RtCertFiledPartManufacturMapper {

    /**
     * 查询零件供应商列表
     */
    List<RtCertFiledPartManufacturDO> selectRtCertFiledPartManufacturList(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);

    /**
     * 查询零件供应商
     */
    RtCertFiledPartManufacturDO selectRtCertFiledPartManufacturById(String id);

    /**
     * 根据零件ID查询零件供应商
     */
    List<RtCertFiledPartManufacturDO> selectRtCertFiledPartManufacturByDO(RtCertFiledPartManufacturDO entity);
    List<RtCertFiledPartManufacturDO>  selectRtCertFiledPartManufacturByFiledId(String filedId);
    List<RtCertFiledPartManufacturDO>  selectRtCertFiledPartManufacturByPartId(String partId);

    /**
     * 新增零件供应商
     */
    int insertRtCertFiledPartManufactur(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);

    /**
     * 修改零件供应商
     */
    int updateRtCertFiledPartManufactur(RtCertFiledPartManufacturDO rtCertFiledPartManufactur);

    /**
     * 删除零件供应商
     */
    int deleteRtCertFiledPartManufacturById(String id);

    /**
     * 根据零件ID删除零件供应商
     */
    int deleteRtCertFiledPartManufacturByPartId(String id);

    /**
     * 根据文件ID删除零件供应商
     */
    int deleteRtCertFiledPartManufacturByFiledId(String id);
    /**
     * 批量删除零件供应商
     */
    int deleteRtCertFiledPartManufacturByIds(@Param("ids") List<String> ids);
}
